Return to doc.sitecore.com

  Config file changes in Sitecore CMS and DMS 7.1 rev. 130926 compared to CMS and DMS 7.0 rev. 130918.

This update requires you to make changes to the following files:

The clean configuration files for Sitecore CMS and DMS 7.1 rev. 130926 can be downloaded using the following links:

Changes to the Web.config

The following changes have been made to the web.config file of Sitecore CMS 7.1 rev. 130926 (Initial Release) as compared to the web.config file of Sitecore CMS 7.0 rev. 130918 (Update-2):

  1. In the <processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel"> section, add the following node:
    <showVersionForAllAssemblies>true</showVersionForAllAssemblies>
  2. In the <pipelines> section, add the following nodes:
    <getRenderedRuleElements>
      <processor type="Sitecore.Pipelines.Rules.Taxonomy.GetContextFolder, Sitecore.Kernel" />
      <processor type="Sitecore.Pipelines.Rules.Taxonomy.GetTags, Sitecore.Kernel" />
      <processor type="Sitecore.Pipelines.Rules.Taxonomy.GetElementFolders, Sitecore.Kernel" />
    </getRenderedRuleElements>
  3. In the <database id="web" singleInstance="true" type="Sitecore.Data.Database, Sitecore.Kernel"> section, replace the following node:
    <sc.include file="/App_Config/Prefetch/Web.config" />
    with:
    <sc.include file="/App_Config/Prefetch/Webdb.config" />
  4. In the <mediaType name="Any" extensions="*"> section, replace the following node:
    <filePath>/sitecore/shell/Themes/standard/images/document_music.png</filePath>
    with:
    <filePath>/sitecore/shell/Themes/Standard/Applications/32x32/Document.png</filePath>
  5. In the <settings> section, replace the description of the Media.DisableFileMedia setting with the following description:
    <!--  MEDIA - DISABLE FILE MEDIA
          Enables or disables storage of media as files rather than database records.
          If true, user interfaces do not present options to store media as files.
          All files will be stored in the database, disregarding the value of the Media.UploadAsFiles setting.  
               
          Default value: false
    -->
  6. In the <system.webServer><handlers> section, add the following node:
    <add verb="*" path="sitecore_speak.ashx" type="Sitecore.Resources.Scripts.ScriptHandler, Sitecore.Speak.Client" name="Sitecore.Speak" />
  7. In the <system.web><httpHandlers> section, add the following node:
    <add verb="*" path="sitecore_speak.ashx" type="Sitecore.Resources.Scripts.ScriptHandler, Sitecore.Speak.Client" />
  8. If your solution already has MVC enabled, in the <system.web><compilation><assemblies> section, replace the following nodes:
    <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    with:
    <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />

If your solution already has MVC enabled, skip the following steps. Otherwise perform the following steps to enable MVC:

  1. In the <configuration><configSections> section, remove the following nodes:
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  2. In the <system.webServer><modules> section, add the runAllManagedModulesForAllRequests="true" attribute:
    <modules runAllManagedModulesForAllRequests="true">
  3. In the <system.webServer><modules> section, remove the following nodes:
    <remove name="ScriptModule" />
    <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  4. In the <system.web><pages validateRequest="false"> section, add the following node:
    <namespaces>
      <add namespace="System.Web.Mvc" />
      <add namespace="System.Web.Mvc.Ajax" />
      <add namespace="System.Web.Mvc.Html" />
      <add namespace="System.Web.Routing" />
      <add namespace="System.Linq" />
      <add namespace="System.Collections.Generic" />
    </namespaces>
  5. In the <system.webServer><handlers> section, remove the following nodes:
    <remove name="WebServiceHandlerFactory-Integrated" />
    <remove name="ScriptHandlerFactory" />
    <remove name="ScriptHandlerFactoryAppServices" />
    <remove name="ScriptResource" />
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  6. In the <system.web><httpModules> section, remove the following node:
    <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  7. In the <system.web><httpHandlers> section, remove the following nodes:
    <remove verb="*" path="*.asmx" />
    <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  8. In the <configuration> section, remove the following node:
    <system.codedom>
      <compilers>
        <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
          <providerOption name="CompilerVersion" value="v4.0" />
          <providerOption name="WarnAsError" value="false" />
        </compiler>
      </compilers>
    </system.codedom>
  9. In the <system.web><compilation><assemblies> section, add the following nodes:
    <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35" />

Changes to the App_Config\Prefetch\Web.config

The following changes have been made to the App_Config\Prefetch\Webdb.config file of Sitecore CMS 7.1 rev. 130926 (Initial Release) as compared to the App_Config\Prefetch\Web.config file of Sitecore CMS 7.0 rev. 130918 (Update-2):

  1. Rename App_Config\Prefetch\Web.config file to App_Config\Prefetch\Webdb.config

Changes to the App_Config\FieldTypes.config

The following changes have been made to the App_Config\FieldTypes.config file of Sitecore CMS 7.1 rev. 130926 (Initial Release) as compared to the App_Config\FieldTypes.config file of Sitecore CMS 7.0 rev. 130918 (Update-2):

  1. In the <configuration> section, replace the following node:
    <fieldType name="Rules" type="Sitecore.Data.Fields.TextField,Sitecore.Kernel" resizable="true" />
    with:
    <fieldType name="Rules" type="Sitecore.Data.Fields.RulesField,Sitecore.Kernel" resizable="true" />

Changes to the App_Config\Include\ScalabilitySettings.config.example

The following changes have been made to the App_Config\Include\ScalabilitySettings.config.example file of Sitecore CMS 7.1 rev. 130926 (Initial Release) as compared to the App_Config\Include\ScalabilitySettings.config.example file of Sitecore CMS 7.0 rev. 130918 (Update-2):

  1. In the <settings> section, replace the description of the Media.DisableFileMedia setting with the following description:
    <!--  MEDIA - DISABLE FILE MEDIA
          Enables or disables storage of media as files rather than database records.
          If true, user interfaces do not present options to store media as files.
          All files will be stored in the database, disregarding the value of the Media.UploadAsFiles setting.   
    -->

Changes to the App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config

The following changes have been made to the App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file of Sitecore CMS 7.1 rev. 130926 (Initial Release) as compared to the App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file of Sitecore CMS 7.0 rev. 130918 (Update-2):

  1. In the <virtualFieldProcessors hint="raw:AddVirtualFieldProcessor"> section, add the following node:
    <virtualFieldProcessor fieldName="updateddaterange" type="Sitecore.ContentSearch.VirtualFields.UpdatedDateRangeFieldProcessor, Sitecore.ContentSearch" />

Rename config files to enable Sitecore MVC

In Sitecore CMS 7.1, Sitecore MVC is enabled by default.

If you have not already enabled Sitecore MVC in your solution, you must rename the following include files in the /App_Config/Include folder:

  1. Rename Sitecore.Mvc.config.disabled to Sitecore.Mvc.config
  2. Rename Sitecore.MvcExperienceEditor.config.disabled to Sitecore.MvcExperienceEditor.config
  3. Rename Sitecore.MvcSimulator.config.disabled to Sitecore.MvcSimulator.config
  4. If you have Analytics enabled, rename Sitecore.MvcAnalytics.config.disabled to Sitecore.MvcAnalytics.config

Changes to the App_Config\Include\Sitecore.Mvc.config

The following changes have been made to the App_Config\Include\Sitecore.Mvc.config file of Sitecore CMS 7.1 rev. 130926 (Initial Release) as compared to the App_Config\Include\Sitecore.Mvc.config file of Sitecore CMS 7.0 rev. 130918 (Update-2):

Note: all of the following instructions related to the Sitecore.Mvc.config file are related to updating the comments for settings. You can skip these instructions if you wish (or you can download the clean App_Config\Include\Sitecore.Mvc.config file using the link at the top of this page and re-apply any modifications you have made to the file).

  1. In the <settings> section, replace the description of the Mvc.AllowDataSourceNesting setting with the following description:
    <!--  MVC: Flag for controlling data source nesting.
          Default: "true"
    -->
  2. In the <settings> section, replace the description of the Mvc.ControllersPath setting with the following description:
    <!--  MVC: Path to controller items.
          Default: "/sitecore/layout/controllers"
    -->
  3. In the <settings> section, replace the description of the Mvc.DecodeRenderingParametersTwice setting with the following description:
    <!--  MVC: Flag to control whether or not rendering parameters should be decoded twice (Sitecore double-encodes them).
          Default: "true"
    -->
  4. In the <settings> section, replace the description of the Mvc.DefaultActionName setting with the following description:
    <!--  MVC: Name of default action to invoke on a controller.
          Default: "Index"
    -->
  5. In the <settings> section, replace the description of the Mvc.DefaultFormControllerName setting with the following description:
    <!--  MVC: Name of default controller to invoke when handling form posts from renderings
          Default: "" (Means that renderings that contain empty Form Controller fields cannot handle form posts)
    -->
  6. In the <settings> section, replace the description of the Mvc.DefaultViewExtension setting with the following description:
    <!--  MVC: Default extension of view files.
          Default: "cshtml"
    -->
  7. In the <settings> section, replace the description of the Mvc.IgnoreKeyPrefix setting with the following description:
    <!--  MVC: Internal prefix used to filter out route keys that should be ignored.
          Default: "sc_ignore_"
    -->
  8. In the <settings> section, replace the description of the Mvc.IllegalRoutes setting with the following description:
    <!--  MVC: Pipe separated list of route URL's that are not valid for use with Sitecore.Mvc.
          For instance, the default ASP.NET route ({controller}/{action}/{id}) catches most requests
          that are actually meant to be handled by the default Sitecore route.
          Default: "{controller}/{action}/{id}"
    -->
  9. In the <settings> section, replace the description of the Mvc.ModelsPath setting with the following description:
    <!--  MVC: Path to the model items.
          Default: "/sitecore/layout/models"
    -->
  10. In the <settings> section, replace the description of the Mvc.RenderersViewFolder setting with the following description:
    <!--  MVC: Path to the base file folder that contains the views used for item renderings.
          Default: "/views/renderers"
    -->
  11. In the <settings> section, replace the description of the Mvc.RenderingsPath setting with the following description:
    <!--  MVC: Path to the rendering items.
          Default: "/sitecore/layout/renderings"
    -->
  12. In the <settings> section, replace the description of the Mvc.SitecoreActionName setting with the following description:
    <!--  MVC: Name of the default action to invoke in the Sitecore controller.
          Default: "Index"
    -->
  13. In the <settings> section, replace the description of the Mvc.SitecoreControllerName setting with the following description:
    <!--  MVC: The name of the Sitecore controller.
          Default: "Sitecore"
    -->
  14. In the <settings> section, replace the description of the Mvc.SitecoreRouteName setting with the following description:
    <!--  MVC: The name of the fall-through route handled by Sitecore.
          Default: "Sitecore"
    -->
  15. In the <settings> section, replace the description of the Mvc.DetailedErrorOnMissingAction setting with the following description:
    <!--  MVC: Flag for controlling whether or not detailed error messages are shown when an action method cannot be found.
          Default: "true"
    -->
  16. In the <settings> section, replace the description of the Mvc.DetailedErrorOnMissingController setting with the following description:
    <!--  MVC: Flag for controlling whether or not detailed error messages are shown when a controller cannot be found.
          Default: "true"
    -->
  17. In the <settings> section, replace the description of the Mvc.ViewExtensions setting with the following description:
    <!--  MVC: Pipe separated list of the legal file extensions for views.
          Default: "|cshtml|"
    -->